<template>
    <div id="OrdersDelivery">
        <v-details :detailData="inputData" :inputConfig="inputConfig" ref="input"></v-details>
    </div>
</template>

<script>
import details from 'commons/Detail'
import baseMixin from "@/mixins/BaseMixin";

export default {
    mixins: [baseMixin],
    props: {
        inputData: {
            type: Object
        }
    },
    name: "OrdersDelivery",
    data() {
        return {
            inputConfig: [
                [
                    {
                        type: "input",
                        label: this.$t('out.dropid1'),
                        props: "dropid"
                    },
                    {
                        type: "input",
                        label: this.$t('out.loadid'),
                        props: "loadid",
                    },
                    {
                        type: "input",
                        label: this.$t('out.route'),
                        props: "route"
                    },
                    {
                        type: "input",
                        label: this.$t('in.door'),
                        props: "door",
                    },
                ],
                [
                    {
                        type: "input",
                        label: this.$t('out.stop'),
                        props: "stop"
                    },
                    {
                        type: "input",
                        label: this.$t('config.carrier'),
                        props: "intermodalvehicle"
                    },
                    {
                        type: "input",
                        label: this.$t('out.freightchargeamount'),
                        props: "freightcharges"
                    },
                    {
                        type: "checkbox",
                        label: this.$t('out.crossdocked'),
                        props: "crossdocked"
                    }
                ],
                [
                    {
                        type: "input",
                        label: this.$t('in.caseid'),
                        props: "caseid"
                    },
                    {
                        type: "input",
                        label: this.$t('config.boxGroup'),
                        props: "cartongroup"
                    },
                    {
                        type: "select",
                        label: this.$t('out.docartonize'),
                        props: "docartonize",
                        options: [
                            {code: "N", description: this.$t("code.no")},
                            {code: "Y", description: this.$t("code.yes")},
                        ]
                    },
                    {
                        type: "input",
                        label: this.$t('config.cartonType'),
                        props: "cartontype"
                    },
                ],
                [
                    {
                        type: "input",
                        label: "UDF1",
                        props: "pdudf1"
                    },
                    {
                        type: "input",
                        label: "UDF2",
                        props: "pdudf2"
                    },
                    {
                        type: "input",
                        label: "UDF3",
                        props: "pdudf3"
                    },
                ],
                [
                    {
                        type: "input",
                        label: this.$t('out.picknotes'),
                        props: "picknotes"
                    },
                ]
            ],
        }
    },
    methods: {},
    mounted() {
    },
    components: {
        'v-details': details
    }
}
</script>

<style scoped>

</style>

